namespace WeatherSystem.API.CQRS
{
    /// <summary>
    /// 中介者模式接口
    /// </summary>
    public interface IMediator
    {
        Task SendAsync(ICommand command);
        Task<TResult> SendAsync<TResult>(ICommand<TResult> command);
        Task<TResult> QueryAsync<TResult>(IQuery<TResult> query);
    }
}